home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 …ember: Reference Library / Dev.CD Dec 00 RL Disk 1.toast / pc / technical documentation / develop / develop issue 18 / develop issue 18 code / apple guide sample.sea / Apple Guide Sample / !Apple Guide article correction next >
MacBinary  |  1995-01-13  |  1.8 KB  |  [TEXT/ttxt]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Fri Jan 13 15:37:33 1995, modified Fri Jan 13 15:37:33 1995, creator SimpleText, type ASCII, 1182 bytes "!Apple Guide article correction" , at 0x51e 332 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[ttxt]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 1f 21 41 70 70 6c 65 | 20 47 75 69 64 65 20 61 |..!Apple| Guide a|
|00000010| 72 74 69 63 6c 65 20 63 | 6f 72 72 65 63 74 69 6f |rticle c|orrectio|
|00000020| 6e 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |n.......|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 74 74 78 | 74 01 00 00 00 00 00 00 |.TEXTttx|t.......|
|00000050| 00 00 00 00 00 04 9e 00 | 00 01 4c ab 3c 95 0d ab |........|..L.<...|
|00000060| 3c 95 0d 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |<.......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 56 a1 00 00 |........|....V...|
|00000080| 4f 6e 20 70 61 67 65 20 | 31 38 20 6f 66 20 74 68 |On page |18 of th|
|00000090| 65 20 4a 75 6e 65 20 31 | 39 39 34 20 64 65 76 65 |e June 1|994 deve|
|000000a0| 6c 6f 70 20 61 72 74 69 | 63 6c 65 20 61 62 6f 75 |lop arti|cle abou|
|000000b0| 74 20 41 70 70 6c 65 20 | 47 75 69 64 65 2c 20 69 |t Apple |Guide, i|
|000000c0| 74 20 73 74 61 74 65 73 | 20 74 68 61 74 0d 20 22 |t states| that. "|
|000000d0| 54 68 65 20 43 6f 6e 74 | 65 78 74 52 65 70 6c 79 |The Cont|extReply|
|000000e0| 50 72 6f 63 20 73 68 6f | 75 6c 64 20 75 73 65 20 |Proc sho|uld use |
|000000f0| 4e 65 77 50 74 72 20 74 | 6f 20 63 72 65 61 74 65 |NewPtr t|o create|
|00000100| 20 61 20 73 74 6f 72 61 | 67 65 20 61 72 65 61 20 | a stora|ge area |
|00000110| 66 6f 72 20 61 20 73 68 | 6f 72 74 2c 0d 20 73 65 |for a sh|ort,. se|
|00000120| 74 20 2a 70 70 4f 75 74 | 70 75 74 44 61 74 61 20 |t *ppOut|putData |
|00000130| 74 6f 20 74 68 65 20 76 | 61 6c 75 65 20 6f 66 20 |to the v|alue of |
|00000140| 74 68 65 20 70 6f 69 6e | 74 65 72 2c 20 61 6e 64 |the poin|ter, and|
|00000150| 20 73 65 74 20 2a 70 4f | 75 74 70 75 74 44 61 74 | set *pO|utputDat|
|00000160| 61 53 69 7a 65 20 74 6f | 0d 20 73 69 7a 65 6f 66 |aSize to|. sizeof|
|00000170| 28 73 68 6f 72 74 29 2e | 20 41 6c 77 61 79 73 20 |(short).| Always |
|00000180| 72 65 74 75 72 6e 20 61 | 20 70 6f 69 6e 74 65 72 |return a| pointer|
|00000190| 20 74 6f 20 61 20 73 68 | 6f 72 74 2e 22 0d 0d 49 | to a sh|ort."..I|
|000001a0| 6e 20 66 61 63 74 2c 20 | 41 70 70 6c 65 20 47 75 |n fact, |Apple Gu|
|000001b0| 69 64 65 20 75 73 65 73 | 20 6f 6e 6c 79 20 74 68 |ide uses| only th|
|000001c0| 65 20 66 69 72 73 74 20 | 62 79 74 65 20 6f 66 20 |e first |byte of |
|000001d0| 74 68 65 20 76 61 6c 75 | 65 20 74 68 61 74 20 69 |the valu|e that i|
|000001e0| 73 20 72 65 74 75 72 6e | 65 64 2e 20 54 68 65 0d |s return|ed. The.|
|000001f0| 20 2a 70 4f 75 74 70 75 | 74 44 61 74 61 53 69 7a | *pOutpu|tDataSiz|
|00000200| 65 20 76 61 6c 75 65 20 | 69 73 20 69 67 6e 6f 72 |e value |is ignor|
|00000210| 65 64 2e 20 54 68 65 20 | 63 6f 72 72 65 63 74 20 |ed. The |correct |
|00000220| 73 74 61 74 65 6d 65 6e | 74 20 69 73 20 22 54 68 |statemen|t is "Th|
|00000230| 65 0d 20 43 6f 6e 74 65 | 78 74 52 65 70 6c 79 50 |e. Conte|xtReplyP|
|00000240| 72 6f 63 20 73 68 6f 75 | 6c 64 20 75 73 65 20 4e |roc shou|ld use N|
|00000250| 65 77 50 74 72 20 74 6f | 20 63 72 65 61 74 65 20 |ewPtr to| create |
|00000260| 61 20 73 74 6f 72 61 67 | 65 20 61 72 65 61 20 66 |a storag|e area f|
|00000270| 6f 72 20 61 20 42 6f 6f | 6c 65 61 6e 2c 20 73 65 |or a Boo|lean, se|
|00000280| 74 0d 20 2a 70 70 4f 75 | 74 70 75 74 44 61 74 61 |t. *ppOu|tputData|
|00000290| 20 74 6f 20 74 68 65 20 | 76 61 6c 75 65 20 6f 66 | to the |value of|
|000002a0| 20 74 68 65 20 70 6f 69 | 6e 74 65 72 2c 20 61 6e | the poi|nter, an|
|000002b0| 64 20 73 65 74 20 2a 70 | 4f 75 74 70 75 74 44 61 |d set *p|OutputDa|
|000002c0| 74 61 53 69 7a 65 20 74 | 6f 0d 20 73 69 7a 65 6f |taSize t|o. sizeo|
|000002d0| 66 28 42 6f 6f 6c 65 61 | 6e 29 2e 20 41 6c 77 61 |f(Boolea|n). Alwa|
|000002e0| 79 73 20 72 65 74 75 72 | 6e 20 61 20 70 6f 69 6e |ys retur|n a poin|
|000002f0| 74 65 72 20 74 6f 20 61 | 20 42 6f 6f 6c 65 61 6e |ter to a| Boolean|
|00000300| 2e 22 0d 0d 54 68 65 20 | 4d 6f 47 75 69 64 65 20 |."..The |MoGuide |
|00000310| 73 61 6d 70 6c 65 20 73 | 6f 75 72 63 65 20 75 73 |sample s|ource us|
|00000320| 65 73 20 61 20 73 68 6f | 72 74 2c 20 62 75 74 20 |es a sho|rt, but |
|00000330| 69 74 20 69 73 20 63 61 | 73 74 20 74 6f 20 61 20 |it is ca|st to a |
|00000340| 63 68 61 72 20 77 68 65 | 6e 20 69 74 20 61 73 73 |char whe|n it ass|
|00000350| 69 67 6e 73 0d 20 74 68 | 65 20 72 65 73 75 6c 74 |igns. th|e result|
|00000360| 2e 20 43 6f 6e 73 65 71 | 75 65 6e 74 6c 79 2c 20 |. Conseq|uently, |
|00000370| 74 68 65 20 4d 6f 47 75 | 69 64 65 20 65 78 61 6d |the MoGu|ide exam|
|00000380| 70 6c 65 20 72 65 74 75 | 72 6e 73 20 74 68 65 20 |ple retu|rns the |
|00000390| 65 71 75 69 76 61 6c 65 | 6e 74 20 6f 66 20 61 0d |equivale|nt of a.|
|000003a0| 20 42 6f 6f 6c 65 61 6e | 20 62 65 63 61 75 73 65 | Boolean| because|
|000003b0| 20 6f 66 20 74 68 65 20 | 6d 6f 64 65 72 6e 20 6d | of the |modern m|
|000003c0| 69 72 61 63 6c 65 73 20 | 6f 66 20 63 6f 6d 70 69 |iracles |of compi|
|000003d0| 6c 65 72 20 63 61 73 74 | 69 6e 67 2e 20 49 66 20 |ler cast|ing. If |
|000003e0| 61 6e 20 65 6e 67 69 6e | 65 65 72 0d 20 66 6f 6c |an engin|eer. fol|
|000003f0| 6c 6f 77 73 20 74 68 65 | 20 4d 6f 47 75 69 64 65 |lows the| MoGuide|
|00000400| 20 65 78 61 6d 70 6c 65 | 20 65 78 61 63 74 6c 79 | example| exactly|
|00000410| 2c 20 74 68 65 20 63 6f | 6e 74 65 78 74 20 63 68 |, the co|ntext ch|
|00000420| 65 63 6b 20 77 69 6c 6c | 20 77 6f 72 6b 2e 20 48 |eck will| work. H|
|00000430| 6f 77 65 76 65 72 2c 20 | 6d 6f 73 74 0d 20 77 69 |owever, |most. wi|
|00000440| 6c 6c 20 72 65 74 75 72 | 6e 20 61 20 70 6f 69 6e |ll retur|n a poin|
|00000450| 74 65 72 20 74 6f 20 74 | 68 65 20 73 68 6f 72 74 |ter to t|he short|
|00000460| 20 70 65 72 20 74 68 65 | 20 69 6e 73 74 72 75 63 | per the| instruc|
|00000470| 74 69 6f 6e 73 20 61 6e | 64 2c 20 73 69 6e 63 65 |tions an|d, since|
|00000480| 20 41 70 70 6c 65 20 47 | 75 69 64 65 0d 20 75 73 | Apple G|uide. us|
|00000490| 65 73 20 6f 6e 6c 79 20 | 74 68 65 20 66 69 72 73 |es only |the firs|
|000004a0| 74 20 62 79 74 65 20 6f | 66 20 74 68 65 20 73 68 |t byte o|f the sh|
|000004b0| 6f 72 74 2c 20 74 68 65 | 20 72 65 73 75 6c 74 20 |ort, the| result |
|000004c0| 77 69 6c 6c 20 61 6c 77 | 61 79 73 20 62 65 20 69 |will alw|ays be i|
|000004d0| 6e 74 65 72 70 72 65 74 | 65 64 20 61 73 0d 20 66 |nterpret|ed as. f|
|000004e0| 61 6c 73 65 2e 20 54 68 | 65 20 63 6f 72 72 65 63 |alse. Th|e correc|
|000004f0| 74 20 61 63 74 69 6f 6e | 20 69 73 20 74 6f 20 72 |t action| is to r|
|00000500| 65 74 75 72 6e 20 61 20 | 70 6f 69 6e 74 65 72 20 |eturn a |pointer |
|00000510| 74 6f 20 61 20 42 6f 6f | 6c 65 61 6e 2e 0d 00 00 |to a Boo|lean....|
|00000520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000580| 00 00 01 00 00 00 01 1a | 00 00 00 1a 00 00 00 32 |........|.......2|
|00000590| 2e 10 4a 75 67 67 6c 65 | 52 6f 75 74 69 6e 65 73 |..Juggle|Routines|
|000005a0| 2e 63 0d 4a 75 67 67 6c | 65 55 74 69 6c 73 2e 63 |.c.Juggl|eUtils.c|
|000005b0| 1f 21 41 70 70 6c 65 20 | 47 75 69 64 65 20 61 72 |.!Apple |Guide ar|
|000005c0| 74 69 63 6c 65 20 63 6f | 72 72 65 63 74 69 6f 6e |ticle co|rrection|
|000005d0| 00 00 54 45 58 54 74 74 | 78 74 01 00 ff ff ff ff |..TEXTtt|xt......|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 ab 3c 5c cb 00 00 | 04 9e 00 00 01 4c 4d 61 |...<\...|.....LMa|
|00000600| 63 20 49 49 73 69 09 4d | 61 63 20 4c 43 20 49 49 |c IIsi.M|ac LC II|
|00000610| 0c 4d 61 63 20 53 57 20 | 28 4e 2d 5a 29 1c 4d 61 |.Mac SW |(N-Z).Ma|
|00000620| 63 69 6e 74 6f 73 68 20 | 43 50 55 73 20 2d 20 36 |cintosh |CPUs - 6|
|00000630| 38 4b 20 44 65 73 6b 74 | 6f 70 12 4d 61 63 69 6e |8K Deskt|op.Macin|
|00000640| 74 6f 73 68 20 70 72 6f | 64 75 63 74 73 12 4d 61 |tosh pro|ducts.Ma|
|00000650| 63 69 6e 74 6f 73 68 20 | 53 6f 66 74 77 61 72 65 |cintosh |Software|
|00000660| 17 4d 61 63 69 6e 74 6f | 73 68 20 54 42 20 45 73 |.Macinto|sh TB Es|
|00000670| 73 65 6e 74 69 61 6c 73 | 0b 4d 61 63 57 72 69 74 |sentials|.MacWrit|
|00000680| 00 00 00 16 00 01 00 00 | 00 00 00 10 00 0c 00 01 |........|........|
|00000690| 00 00 00 00 00 00 00 00 | 00 00 00 00 01 00 00 00 |........|........|
|000006a0| 01 1a 00 00 00 1a 00 00 | 00 32 02 c7 4d 28 20 b0 |........|.2..M( .|
|000006b0| 00 00 00 1c 00 32 00 00 | 73 74 79 6c 00 00 00 0a |.....2..|styl....|
|000006c0| 00 80 ff ff 00 00 00 00 | 02 c7 50 78 00 00 00 00 |........|..Px....|
|000006d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+